<template>
  <div>
    <p>父组件</p>
    <Child :message="message" :age="age" @currentName="currentName"></Child>
  </div>
</template>

<script>
import Child from './Child.vue';
export default {
  name: 'Hone',
  props: {},
  data() {
    return {
      age: 18,
      message: 'hello 儿子',
    };
  },
  components: {
    Child,
  },
  created() {},
  mounted() {
    console.log('时间：', this.$moment().format('YYYY-MM-DD'));
  },
  methods: {
    currentName(mag) {
      console.log('hello，我是' + mag);
    },
  },
};
</script>

<style scoped lang='less'>
</style>
